package com.example.HeadFirstDemo.Factory.AbstractFactory;

public interface Engine {
    void run();
}

class LuxuryEngine implements Engine{

    public void run() {
        System.out.println("豪车横着走");
    }
}

class LowEngine implements Engine{

    public void run() {
        System.out.println("低端汽车默默哭");
    }
}